﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Abhimanu.Mobile.Models
{
    public class DiscussionBoard
    {
        public long DiscussionID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "Title")]
        public string Title { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Description")]
        public string Description { get; set; }
    }

    public class DiscussionReply
    {
        public long DiscussionID { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Title")]
        public string Title { get; set; }

        [DataType(DataType.MultilineText)]
        [Display(Name = "Description")]
        public string Description { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Reply")]
        public string Reply { get; set; }

        public List<ReplyItem> Replies { get; set; }
    }

    public class ReplyItem
    {
        public string CommentText { get; set; }

        public string ReplyBy { get; set; }

        public string RepliedDate { get; set; }
    }
}